<?php
require_once '../libs/app.config.php';
session_start();
if($_SESSION['LoginId'] == false){
	header("Location:login.php");
}
	$sql="select * from admin_user where id='".$_SESSION['LoginId']."'";
	$query=$tpm->query($sql);
	$row=$tpm->fetch_array($query);
	$pwds=$row['password'];

	if(md5($_GET['oldpwd'])==$pwds){
		echo "1";
	}else{
		echo "0";
	}
?>